package com.openbravo.ws.customers;

import java.io.Serializable;
import java.lang.reflect.Array;
import java.util.Arrays;
import javax.xml.namespace.QName;
import org.apache.axis.description.ElementDesc;
import org.apache.axis.description.TypeDesc;
import org.apache.axis.encoding.Deserializer;
import org.apache.axis.encoding.Serializer;
import org.apache.axis.encoding.ser.BeanDeserializer;
import org.apache.axis.encoding.ser.BeanSerializer;

public class BusinessPartner
  implements Serializable
{
  private static final long serialVersionUID = 7460326872588L;
  private String clientId;
  private Boolean complete;
  private Contact[] contacts;
  private Boolean customer;
  private String description;
  private String id;
  private Location[] locations;
  private String name;
  private String searchKey;
  private Boolean vendor;
  private Object __equalsCalc = null;
  private boolean __hashCodeCalc = false;
  private static TypeDesc typeDesc = new TypeDesc(BusinessPartner.class, true);

  public BusinessPartner()
  {
  }

  public BusinessPartner(String paramString1, Boolean paramBoolean1, Contact[] paramArrayOfContact, Boolean paramBoolean2, String paramString2, String paramString3, Location[] paramArrayOfLocation, String paramString4, String paramString5, Boolean paramBoolean3)
  {
    this.clientId = paramString1;
    this.complete = paramBoolean1;
    this.contacts = paramArrayOfContact;
    this.customer = paramBoolean2;
    this.description = paramString2;
    this.id = paramString3;
    this.locations = paramArrayOfLocation;
    this.name = paramString4;
    this.searchKey = paramString5;
    this.vendor = paramBoolean3;
  }

  public String getClientId()
  {
    return this.clientId;
  }

  public void setClientId(String paramString)
  {
    this.clientId = paramString;
  }

  public Boolean getComplete()
  {
    return this.complete;
  }

  public void setComplete(Boolean paramBoolean)
  {
    this.complete = paramBoolean;
  }

  public Contact[] getContacts()
  {
    return this.contacts;
  }

  public void setContacts(Contact[] paramArrayOfContact)
  {
    this.contacts = paramArrayOfContact;
  }

  public Boolean getCustomer()
  {
    return this.customer;
  }

  public void setCustomer(Boolean paramBoolean)
  {
    this.customer = paramBoolean;
  }

  public String getDescription()
  {
    return this.description;
  }

  public void setDescription(String paramString)
  {
    this.description = paramString;
  }

  public String getId()
  {
    return this.id;
  }

  public void setId(String paramString)
  {
    this.id = paramString;
  }

  public Location[] getLocations()
  {
    return this.locations;
  }

  public void setLocations(Location[] paramArrayOfLocation)
  {
    this.locations = paramArrayOfLocation;
  }

  public String getName()
  {
    return this.name;
  }

  public void setName(String paramString)
  {
    this.name = paramString;
  }

  public String getSearchKey()
  {
    return this.searchKey;
  }

  public void setSearchKey(String paramString)
  {
    this.searchKey = paramString;
  }

  public Boolean getVendor()
  {
    return this.vendor;
  }

  public void setVendor(Boolean paramBoolean)
  {
    this.vendor = paramBoolean;
  }

  public synchronized boolean equals(Object paramObject)
  {
    if (!(paramObject instanceof BusinessPartner))
      return false;
    BusinessPartner localBusinessPartner = (BusinessPartner)paramObject;
    if (paramObject == null)
      return false;
    if (this == paramObject)
      return true;
    if (this.__equalsCalc != null)
      return this.__equalsCalc == paramObject;
    this.__equalsCalc = paramObject;
    int i = ((this.clientId == null) && (localBusinessPartner.getClientId() == null)) || ((this.clientId != null) && (this.clientId.equals(localBusinessPartner.getClientId())) && (((this.complete == null) && (localBusinessPartner.getComplete() == null)) || ((this.complete != null) && (this.complete.equals(localBusinessPartner.getComplete())) && (((this.contacts == null) && (localBusinessPartner.getContacts() == null)) || ((this.contacts != null) && (Arrays.equals(this.contacts, localBusinessPartner.getContacts())) && (((this.customer == null) && (localBusinessPartner.getCustomer() == null)) || ((this.customer != null) && (this.customer.equals(localBusinessPartner.getCustomer())) && (((this.description == null) && (localBusinessPartner.getDescription() == null)) || ((this.description != null) && (this.description.equals(localBusinessPartner.getDescription())) && (((this.id == null) && (localBusinessPartner.getId() == null)) || ((this.id != null) && (this.id.equals(localBusinessPartner.getId())) && (((this.locations == null) && (localBusinessPartner.getLocations() == null)) || ((this.locations != null) && (Arrays.equals(this.locations, localBusinessPartner.getLocations())) && (((this.name == null) && (localBusinessPartner.getName() == null)) || ((this.name != null) && (this.name.equals(localBusinessPartner.getName())) && (((this.searchKey == null) && (localBusinessPartner.getSearchKey() == null)) || ((this.searchKey != null) && (this.searchKey.equals(localBusinessPartner.getSearchKey())) && (((this.vendor == null) && (localBusinessPartner.getVendor() == null)) || ((this.vendor != null) && (this.vendor.equals(localBusinessPartner.getVendor()))))))))))))))))))))) ? 1 : 0;
    this.__equalsCalc = null;
    return i==1;
  }

  public synchronized int hashCode()
  {
    if (this.__hashCodeCalc)
      return 0;
    this.__hashCodeCalc = true;
    int i = 1;
    if (getClientId() != null)
      i += getClientId().hashCode();
    if (getComplete() != null)
      i += getComplete().hashCode();
    int j;
    Object localObject;
    if (getContacts() != null)
      for (j = 0; j < Array.getLength(getContacts()); j++)
      {
        localObject = Array.get(getContacts(), j);
        if ((localObject == null) || (localObject.getClass().isArray()))
          continue;
        i += localObject.hashCode();
      }
    if (getCustomer() != null)
      i += getCustomer().hashCode();
    if (getDescription() != null)
      i += getDescription().hashCode();
    if (getId() != null)
      i += getId().hashCode();
    if (getLocations() != null)
      for (j = 0; j < Array.getLength(getLocations()); j++)
      {
        localObject = Array.get(getLocations(), j);
        if ((localObject == null) || (localObject.getClass().isArray()))
          continue;
        i += localObject.hashCode();
      }
    if (getName() != null)
      i += getName().hashCode();
    if (getSearchKey() != null)
      i += getSearchKey().hashCode();
    if (getVendor() != null)
      i += getVendor().hashCode();
    this.__hashCodeCalc = false;
    return i;
  }

  public static TypeDesc getTypeDesc()
  {
    return typeDesc;
  }

  public static Serializer getSerializer(String paramString, Class paramClass, QName paramQName)
  {
    return new BeanSerializer(paramClass, paramQName, typeDesc);
  }

  public static Deserializer getDeserializer(String paramString, Class paramClass, QName paramQName)
  {
    return new BeanDeserializer(paramClass, paramQName, typeDesc);
  }

  static
  {
    typeDesc.setXmlType(new QName("/services/WebService", "BusinessPartner"));
    ElementDesc localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("clientId");
    localElementDesc.setXmlName(new QName("", "clientId"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("complete");
    localElementDesc.setXmlName(new QName("", "complete"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "boolean"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("contacts");
    localElementDesc.setXmlName(new QName("", "contacts"));
    localElementDesc.setXmlType(new QName("/services/WebService", "Contact"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("customer");
    localElementDesc.setXmlName(new QName("", "customer"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "boolean"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("description");
    localElementDesc.setXmlName(new QName("", "description"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("id");
    localElementDesc.setXmlName(new QName("", "id"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("locations");
    localElementDesc.setXmlName(new QName("", "locations"));
    localElementDesc.setXmlType(new QName("/services/WebService", "Location"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("name");
    localElementDesc.setXmlName(new QName("", "name"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("searchKey");
    localElementDesc.setXmlName(new QName("", "searchKey"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("vendor");
    localElementDesc.setXmlName(new QName("", "vendor"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "boolean"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.ws.customers.BusinessPartner
 * JD-Core Version:    0.6.0
 */